<template>
	<NavigationBar
		:title="pageType === 'reappointment' ? '重新预约' : '预约详情'"
	></NavigationBar>
	<view class="booking_page full">
		<Content :pageType="pageType" :id="id" :buttonList="buttonList"/>
	</view>
</template>
<script setup>
import Content from "./index.vue";
// 判断页面性质 reappointment为重新预约 approval为审批
const pageType = ref("");
const id = ref("");
// 按钮权限
const buttonList = ref("");
onLoad((option) => {
	if (option) {
		pageType.value = option.type;
		id.value = option.id;
		buttonList.value = option.buttonList;
	}
});
</script>
<style lang="scss" scoped>
.booking_ {
	&page {
		height: calc(100% - $uni-navigation-height - var(--window-bottom));
	}
}
</style>
